package wodegua.d2_demo;

import java.util.ArrayList;

public class Collect {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        System.out.println(list);
        System.out.println(list.get(1));
        System.out.println(list.size());
        System.out.println(list.set(1,"cc"));
        System.out.println(list);

    }
}
